<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试文件上传</title>
    {include file="public/footer"}
</head>
<body>
<div>
    <input type="text" class="up_domain_url" placeholder="上传地址">

</div>
<div>
    <form action="JavaScript:;" onsubmit="UploadInfo.upload(this)" method="post" enctype="multipart/form-data">
        <input type="file" name="file_upload[]">
        <input type="file" name="file_upload[]">
        <input type="submit" value="上传">
    </form>
</div>
</body>
<script>
    let UploadInfo = {
        upload: function (obj) {
            $(obj).attr('action',$('.up_domain_url').val());
            $(obj).submit();
        }
    };
</script>
</html>